import base from '@/api/baseurl';
import request from '@/utils/request'

export function fetchListBCArithmeticMean(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/queryBCArithmeticMean',
    method: 'get',
    params: query
  })
}

//单行删除
export function deleteBCArithmeticMean(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/delBCArithmeticMean',
    method: 'get',
    params: query
  })
}


export function addBCArithmeticMean(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/addBCArithmeticMean',
    method: 'post',
    data
  })
}

export function updateBCArithmeticMean(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/updateBCArithmeticMean',
    method: 'post',
    data
  })
}

export function batchDeleteBCArithmeticMean(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/delManyBCArithmeticMean',
    method: 'post',
    data
  })
}


//同步
export function syncBCArithmeticMean(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/syncBCArithmeticMean',
    method: 'get',
    params: query
  })
}

//查询法人
export function fetchListuserlp(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findoneTransfercurveuserlp',
    method: 'get',
    params: query
  })
}
